listbox: Fix keynav_failed() parameter in move_cursor()
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 8 Oct 2013 21:56:19 +0000 (23:56 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 11 Oct 2013 11:11:59 +0000 (13:11 +0200)
commitdd85acbaf17a1ffcd6c7dc8ee181e9c6cf771020
treebbc94dd758b305125bb965d95d7003ba47384bf1
parent22fe579d3757b2e356cef42029dbbf610f585d36
listbox: Fix keynav_failed() parameter in move_cursor()

The 'direction' parameter to gtk_widget_keynav_failed() is based on
gtk_list_box_move_cursor()'s 'count' parameter. However if the passed
in movement is GTK_MOVEMENT_DISPLAY_LINES, 'count' is modified by
the keynav handling and will always be 0. To avoid messing up the
'direction' parameter, use a local variable for keynav handling and
leave 'count' untouched.

https://bugzilla.gnome.org/show_bug.cgi?id=709687
gtk/gtklistbox.c